package com.evildog.workspace.log.application.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * accessLog
 * </p>
 *
 * @author evildog
 * @since 2020-08-29
 */
@Data
@Accessors(chain = true)
@ApiModel(value="AccessLog分页视图对象", description="访问日志")
public class AccessLogPageVO implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户名")
    private String applicationName;

    @ApiModelProperty(value = "请求地址")
    private String uri;

    @ApiModelProperty(value = "请求方法")
    private String method;

    @ApiModelProperty(value = "user_agent")
    private String userAgent;

    @ApiModelProperty(value = "ip")
    private String ip;

    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "请求时间（毫秒）")
    private Long responseTime;

    @ApiModelProperty(value = "Result->code")
    private String resultCode;

    @ApiModelProperty(value = "Result->message")
    private String resultMessage;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;



}
